package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.time.LocalDate;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 采购单信息
 * </p>
 *
 * @author qubaofeng
 * @since 2025-02-18
 */
@Getter
@Setter
@TableName("cai_gou_dan")
public class CaiGouDan extends BaseEntity {


    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 货品id
     */
    private Long huoPinId;


    @TableField(exist = false)
    private String dangKouName;

    @TableField(exist = false)
    private Long huoPinPinLeiId;

    @TableField(exist = false)
    private String huoPinPinLeiName;

    @TableField(exist = false)
    private String huoPinName;

    @TableField(exist = false)
    private BigDecimal huoPinPrice;

    @TableField(exist = false)
    private String gongYingShangName;

    @TableField(exist = false)
    private String danWei;

    @TableField(exist = false)
    private String pinPai;

    /**
     * 订单id
     */
    private Long dingDanId;


    /**
     * 订单详情id
     */
    private Long dingDanDetailId;

    /**
     * 采购数量
     */
    private BigDecimal buyCount;

    /**
     * 实际采购数量
     */
    @TableField(exist = false)
    private BigDecimal realBuyCount;

    /**
     * 实际采购价格
     */
    @TableField(exist = false)
    private BigDecimal realPrice;

    /**
     * 供货日期
     */
    private LocalDate riQi;

    /**
     * 供货时间
     */
    private String shiJian;

    /**
     * 审核状态
     */
    private Integer status;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


    /**
     * 生产日期
     */
    @TableField(exist = false)
    private String shengChanRiQi;

    /**
     * 保质期
     */
    @TableField(exist = false)
    private String baoZhiQi;

    /**
     * 生产商
     */
    @TableField(exist = false)
    private String shengChanShang;

    /** 退货标志(0:正常; 1:退货)**/
    private Integer tuiHuo;

}
